﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="city_s.aspx.cs" Inherits="city_s" Title="Untitled Page" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style9
        {
            width: 340px;
        }
        .style10
        {
            width: 304px;
        }
        .style11
        {
            width: 219px;
            height: 31px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
        <table cellpadding="0" cellspacing="0" style="width: 100%; height: 66px">
            <tr>
                <td>
    
        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="index.aspx">Home</asp:HyperLink>
&nbsp;/&nbsp;<asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
    &nbsp;/
        <asp:Label ID="Label20" runat="server" Text="Label"></asp:Label>
        <asp:Label ID="Label1" runat="server" Text="Label" CssClass="big_title_grey"></asp:Label>
    
        
        <span style="color: #666666">&nbsp;&nbsp;
    
        
        Photos:<asp:Label ID="Label_photos" runat="server" ForeColor="#FF3300" 
            Text="Label"></asp:Label>
        , Introductions:<asp:Label ID="Label_intro" runat="server" ForeColor="#CC6600" 
            Text="Label"></asp:Label>
        , Ways to play:<asp:Label ID="Label_play" runat="server" ForeColor="#669900" 
            Text="Label"></asp:Label>
        , Edit:<asp:Label ID="Label_edit" runat="server" ForeColor="#0066CC" 
            Text="Label"></asp:Label>
        , Forum Topics:</span><asp:Label ID="Label22" runat="server" ForeColor="#333399" 
                        Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
            
            
                            
    <table>
        <tr valign="top">
            <td class="style9" >
                <asp:Image ID="Image1" runat="server" Width="300px" />
                <br />
                <br />
    <hr />
    <asp:DataList ID="DataList2" runat="server" RepeatColumns="3" 
        RepeatDirection="Horizontal">
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink6" runat="server" 
                ImageUrl='<%# Eval("filename","city_imgs/1/{0}") %>' 
                NavigateUrl='<%# Eval("no","city_s_show_picture.aspx?no={0}") %>'>HyperLink</asp:HyperLink>
        </ItemTemplate>
        </asp:DataList>
        <p>
        <asp:HyperLink ID="HyperLink5" runat="server">Upload Pictures</asp:HyperLink>
    </p>
<hr />
    <p>
        Introduction</p>
    <div>
        <asp:DataList ID="DataList3" runat="server">
            <SeparatorTemplate>
                
            </SeparatorTemplate>
            <ItemTemplate>
                <asp:Image ID="Image4" runat="server" ImageAlign="Middle" 
                    ImageUrl='<%# Eval("user.profile_picture","user_imgs/1/{0}") %>' Width="50px" />
                &nbsp;<asp:HyperLink ID="HyperLink15" runat="server" 
                    NavigateUrl='<%# Eval("create_user_no","user_profile.aspx?no={0}" )%>' 
                    Text='<%# Eval("user.nickname") %>'></asp:HyperLink>
                <br />
                <br />
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("intro") %>'></asp:Label>
                <br />
                <p>
            </ItemTemplate>
        </asp:DataList>
    </div>
                            <p>
                                <asp:HyperLink ID="HyperLink7" runat="server">Write a new introduction</asp:HyperLink>
    </p>
 <hr />
    <div>
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
    </div>
    
                <p>
        <asp:HyperLink ID="HyperLink3" runat="server">edit</asp:HyperLink>
    </p>
     <p>
                                Last edited by
                                <asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
                                &nbsp;<asp:Image ID="Image2" runat="server" ImageAlign="AbsMiddle" Width="30px" />
                                <br />
                                <br />
                                <asp:Label ID="Label16" runat="server" Text="Created and edited by"></asp:Label>
                                &nbsp;<asp:DataList ID="DataList6" runat="server" RepeatColumns="1000" 
                                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <SeparatorTemplate>
                                        ,
                                    </SeparatorTemplate>
                                    <ItemTemplate>
                                        <asp:HyperLink ID="HyperLink14" runat="server" 
                                            NavigateUrl='<%# Eval("create_user_no","user_profile.aspx?no={0}" )%>' 
                                            Text='<%# Eval("user.nickname") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:DataList>
                            </p>
    
                <p>
                                &nbsp;</p>
<hr />
    <p>
        Near by recommendation</p>
    <p>
        <asp:DataList ID="DataList1" runat="server" RepeatColumns="10000" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <SeparatorTemplate>
                ,
            </SeparatorTemplate>
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink4" runat="server" 
                    NavigateUrl='<%# Eval("no","city_s.aspx?no={0}") %>' Text='<%# Eval("title") %>'></asp:HyperLink>
            </ItemTemplate>
        </asp:DataList>
    </p>
                <br />
                <br />
            </td>
            <td class="style9" style="width: 46px" >
                &nbsp;</td>
            <td class="style10" style="width: 346px" >
                <asp:Panel ID="Panel_ways_to_play" runat="server">
                    <table style="width: 90%; border-style: solid; border-width: 1px" 
                        cellpadding="5">
                        <tr>
                            <td style="width: 316px">
                                Ways to play:
                                <asp:Label ID="Label17" runat="server" Text="Label"></asp:Label>
                                ．<asp:HyperLink ID="HyperLink16" runat="server">Post</asp:HyperLink>
                                <span style="color: #999999">
                                <br />
                                <br />
                                ex. Could be a hot route, a travel tip, or a nearby shop people can&#39;t miss.</span>
                                <br />
                                <br />
                                <asp:DataList ID="DataList7" runat="server">
                                    <ItemTemplate>
                                        
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="width: 15px">
                                                    ．</td>
                                                <td>
                                                    <asp:HyperLink ID="HyperLink17" runat="server" 
                                                        NavigateUrl='<%# Eval("no","city_s.aspx?no={0}") %>' 
                                                        Text='<%# Eval("title") %>'></asp:HyperLink> / <asp:Label ID="Label21" runat="server" ForeColor="Red" 
                                                        Text='<%# Eval("recommend_to_everyone") %>'></asp:Label>
                                                </td>
                                            </tr>
                                          
                                            <tr>
                                                <td style="width: 15px">
                                                    &nbsp;</td>
                                                <td>
                                                    <asp:Label ID="Label19" runat="server" style="color: #999999" 
                                                        Text='<%# Eval("intro") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <caption>
                                                
                                            </caption>
                                        </table>
                                    </ItemTemplate>
                                    <SeparatorTemplate>
                                        
                                    </SeparatorTemplate>
                                </asp:DataList>
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                                        
                                            <span class="title1">
                <br />
                Forum</span>
        <asp:GridView ID="GridView1" runat="server" BackColor="White" 
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" 
            Width="300px">
            <FooterStyle BackColor="#CCCC99" />
            <RowStyle BackColor="#F7F7DE" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Image ID="Image3" runat="server" 
                            ImageUrl='<%# Eval("user.profile_picture","user_imgs/1/{0}") %>' 
                            Width="50px" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Author">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink13" runat="server" 
                            NavigateUrl='<%# Eval("create_user_no","user_profile.aspx?no={0}") %>' 
                            Text='<%# Eval("user.nickname") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="no" 
                    DataNavigateUrlFormatString="city_s_forum_show.aspx?no={0}" DataTextField="title" 
                    HeaderText="Subject" />
                <asp:BoundField DataField="reply_amount" HeaderText="Replies" 
                    SortExpression="replies" />
            </Columns>
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
                                        
                                            <asp:HyperLink ID="HyperLink12" runat="server">more topics</asp:HyperLink>
                                        
            </td>
            <td class="style10" >
                <br />
                <table style="width: 100%">
                    <tr>
                        <td style="width: 30px">
                            <asp:Label ID="Label9" runat="server" Font-Size="24pt" ForeColor="#FF6600" 
                                Text="0"></asp:Label>
                        </td>
                        <td>
                            people
                            <br />
                            recommend this.</td>
                    </tr>
                </table>
                <br />
                <asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
                &nbsp;<span style="color: #999999">people recommend this to people who first time 
                visit <%=city_name %>. </span>
                <br />
                <br />
                <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label>
                &nbsp;<span style="color: #999999">people recommend this to <%=city_name %> locals.
                <br />
                </span>
                <br />
                <br />
                <asp:HyperLink ID="HyperLink9" runat="server" Font-Size="14pt">Recommend this</asp:HyperLink>
                <br />
                <br />
                <br /><hr />
                <asp:DataList ID="DataList5" runat="server">
                    <ItemTemplate>
                        <table class="style11">
                            <tr>
                                <td class="style12" style="width: 53px">
                                    <asp:Image ID="Image4" runat="server" 
                                        ImageUrl='<%#Eval("user.profile_picture","user_imgs/1/{0}") %>' 
                                        Width="50px" />
                                </td>
                                <td >
                                    <asp:Label ID="Label12" runat="server" Text='<%# Eval("Ranking") %>' 
                                        CssClass="title1"></asp:Label>
                                    <br />
                                    <asp:HyperLink ID="HyperLink11" runat="server" 
                                        NavigateUrl='<%# Eval("create_user_no","user_profile.aspx?no={0}") %>' 
                                        Text='<%# Eval("user.nickname") %>'></asp:HyperLink>
                                    <br />
                                    <asp:Label ID="Label14" runat="server" Text='<%#Eval("comment") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table><hr />
    <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">Login 
    to delete this item</asp:LinkButton>
    <asp:Label ID="Label15" runat="server" 
        Text=". If this item is created by you, you can login to delete it."></asp:Label>
    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Delete 
    this item</asp:LinkButton>
    <cc1:ConfirmButtonExtender ID="LinkButton1_ConfirmButtonExtender" 
        runat="server" ConfirmText="Are you sure you want to delete this item?" 
        Enabled="True" TargetControlID="LinkButton1">
    </cc1:ConfirmButtonExtender>
&nbsp;
</asp:Content>

